/**
 * @file dev_driver.h
 * @brief 
 * 
 * @author 1024Tech (店铺链接：https://1024tech.taobao.com/)
 * @version 1.0
 * @date 2023-06-08
 * 
 * @copyright Copyright (c) 2023  OpenSir Robot Tech.co, Ltd
 * 
 * @par 修改日志:
 * <table>
 * <tr><th>Date       <th>Version <th>Author  <th>Description
 * <tr><td>2023-05-08 <td>1.0     <td>Mr.lin     <td>Release
 * </table>
 */
#ifndef _DEV_DRIVER_H_
#define _DEV_DRIVER_H_

#include "drv_pwm.h"
#include "drv_gpio.h"
#include "drv_pwm.h"

/* 驱动模块引脚ID */
typedef enum{
    AIN1 = 0,
    AIN2,
    BIN1,
    BIN2,
    STBY,
    IO_MAX
} driverId_e;

typedef enum    
{   
    LOW = 0u,        
    HIGH         
} driverState_e; 

typedef enum    
{   
    CW = 0u,    /* 顺时针 */    
    CCW         /* 逆时针 */
} driverDir_e; 

typedef struct
{
    char name[20];
    gpioDrv_t gpio;
}driverDevConfig;

#endif  /* _DEV_DRIVER_H_ */




